package com.twu.biblioteca;

public class Movie {
    String name;
    String director;
    String year;
    int rating;

    public Movie(String name, String director, String year, int rating) {
        this.name = name;
        this.director = director;
        this.year = year;
        this.rating = rating;
    }

    public boolean isAvailable() {
        return true;
    }

    public String toString() {
        StringBuilder outputString = new StringBuilder();

        outputString.append(this.name);
        outputString.append(" ");

        outputString.append(this.director);
        outputString.append(" ");

        outputString.append(this.year);
        outputString.append(" ");

        outputString.append(this.rating);

        return outputString.toString();
    }

    public String getName() {
        return this.name;
    }
}
